﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ThomasGIS.Vector
{
    public enum VectorOpenMode
    {
        Common,
        ReadOnly,
        ShpOnly
    }

    public class VectorFactory
    {
        public static Shapefile OpenShapefile(string path, VectorOpenMode mode = VectorOpenMode.Common)
        {
            return new Shapefile(path, mode);
        }

        public static Shapefile CreateShapefile(ESRIShapeType type)
        {
            return new Shapefile(type);
        }
    }
}
